{include file="header.html"}
<div class="row">
<div class="span12">
{include file='weixin/nav.html'}
<div class="search-form">
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="weixin_reply" />
用户：<input type="text" name="openid" value="{$smarty.get.openid|html}" />
状态：<select name="s_status">
<option value="0">请选择</option>
<option value="1" {if get('s_status') eq 1} selected="selected"{/if}>已解决</option>
<option value="2" {if get('s_status') eq 2} selected="selected"{/if}>未解决</option>
</select>
<input type="submit" value="搜索" class="btn" />
</form>
</div>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>用户</td>
   <td>状态</td>
   <td>消息类型</td>
   <td>时间</td>
   <td>文本消息内容</td>
   <td>图片</td>
   <td>图文消息标题</td>
   <td>图文消息说明</td>
   <td>消息链接</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.openid}</td>
   <td>{if $c.status}已解决{else}未解决{/if}</td>
   <td>{$c.msgtype}</td>
   <td>{$c.createtime|date:m-d H:m}</td>
   <td>{$c.content}</td>
   <td>{if $c.picurl}<img src="{$c.picurl}" style="width:50px; height:50px;" />{/if}</td>
   <td>{$c.title}</td>
   <td>{$c.description}</td>
   <td>{if $c.url}<a href="{$c.url}" target="_blank">查看</a>{/if}</td>
<td><a href="javascript:;" class="delete" url="{$appadmin}?m=weixin_reply&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}